package org.example.springcloud_feign_provider.controller;

import org.example.pojo.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shkstart
 * @create 2021-03-11 16:54
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("{id}")
    public User getUser(@PathVariable Integer id){
        return new User(id,"张三",18);
    }
}
